package com.jk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author jisiqi
 * @version 1.0
 * @description: TODO  医生管理表
 * @date 2022/10/17 10:24
 */
@Data
@TableName(value = "doctor")
@Document(indexName = "doctor")
public class DoctorBean {

    @Id
    @TableId(value = "doctor_id",type = IdType.AUTO)
    @Field(value = "doctorId",type = FieldType.Integer)
    private   Integer  doctorId;      //医生编号

    @TableField(value = "doctor_img")
    private   String   doctorImg;     //医生头像

    @TableField(value = "doctor_name")
    @Field(value = "doctorName",type = FieldType.Text,analyzer = "ik_max_word")
    private   String   doctorName;     //医生姓名

    @TableField(value = "doctor_phone")
    private   String   doctorPhone;     //医生联系电话

    @TableField(value = "doctor_role")
    private   String   doctorRole;      //医生角色

    @TableField(value = "doctor_team")
    private   Integer   doctorTeam;     //医生所属团队

    @TableField(value = "doctor_organization")
    private   Integer   doctorOrganization;   //医生所属机构

    @TableField(value = "doctor_state")
    private   Integer   doctorState;      //医生状态

    @TableField(value = "doctor_pwd")
    private  String doctor_pwd;//密码




}
